package com.apartmentManage.service;

import com.apartmentManage.entity.IntoPersonnel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IntoPersonnelService {
    /*添加*/
    boolean save( IntoPersonnel intoPersonnel);

    /*添加房间*/
    boolean saveRoom(Integer roomno, String sno);

    /*修改*/
    boolean update( IntoPersonnel intoPersonnel);

    /*删除*/
    boolean delete( String sno);

    /*查询所有*/
    List<IntoPersonnel> getAll();

    /*根据no查询*/
    IntoPersonnel getByNo(String sno);

    /*条件模糊查询*/
    List<IntoPersonnel> getByRequirement(IntoPersonnel intoPersonnel);

    /*查询所有的No*/
    List<String> getAllNo();
}
